import request from "@/utils/request";

export function stockOut_index(params) {
  return request({
    url: "/stockOut/index",
    method: "get",
    params
  });
}

export function stockOut_base(params) {
  return request({
    url: "/stockOut/base",
    method: "get",
    params
  });
}

export function stockOut_add(data) {
  return request({
    url: "/stockOut/add",
    method: "post",
    data: data
  });
}

export function stockOut_info(params) {
  return request({
    url: "/stockOut/info",
    method: "get",
    params
  });
}

export function stockOut_getInventory(params) {
  return request({
    url: "/stockOut/getInventory",
    method: "get",
    params
  });
}

// 出库单详情导出
export function export_stockout_info(data) {
  return request({
    url: "/export/stockOut",
    method: "post",
    responseType: "blob",
    data: data
  });
}
